﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Honestysoft.BaseObject;
using Honestysoft.Financing.Model;
using Honestysoft.Baseframework.WebUI;

namespace Honestysoft.Financing.WebUI.Module.Audit
{
    public partial class ActiveBatch : BasePage
    {
        protected override void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string maxID = new Honestysoft.Financing.BusinessLogic.Audit(Globals.CurrentConnStringName).GetMaxBatchID();

                if (!string.IsNullOrEmpty(maxID))
                {
                    Response.Redirect(string.Format("BatchInfo.aspx?ID={0}&FunctionID={1}", maxID, FunctionID));
                }
            }
        }
    }
}